// 程序的主路口
import { createApp } from 'vue';
import './style.css';
import App from './App.vue';
import router from './routers';
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import * as ElementPlusIconsVue from '@element-plus/icons-vue';

const app = createApp(App);
const repeatIcons = ['menu'];
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  if (repeatIcons.includes(key.toLowerCase())) {
    app.component(key + '-repeat', component);
    console.log(key + '-repeat');
  } else {
    app.component(key, component);
  }
}
app.use(router).use(ElementPlus).mount('#app');
